﻿namespace MvcXRepairCustomer.Services
{
    using System.Collections.Generic;
    using MvcXRepairCustomer.Interfaces;
    using MvcXRepairCustomer.Repository.SQL;
    using XRepair.Models;

    public class ServiceService : IServiceService
    {
        private ServiceDAO _serviceRepository;

        public ServiceService()
        {
            _serviceRepository = new ServiceDAO();
        }

        public IEnumerable<Service> GetAllActiveServices()
        {
            return _serviceRepository.GetAllActiveServices();
        }
    }
}
